package com.lindroy.androidplayer.viewmodels

import androidx.lifecycle.ViewModel
import com.lindroy.androidplayer.utils.SingleLiveEvent

/**
 * @author Lin
 * @date 2022/3/3
 * @function
 */
data class LibraryItemViewModel(
    val name: String,
    val url: String,
    val itemClickAction: SingleLiveEvent<LibraryItemViewModel>
) : ViewModel() {

    fun onItemClick() {
        itemClickAction.postValue(this)
    }
}
